package nbcb;

import java.util.Scanner;

public class K {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n, m, x, y, sum, num;
        while (sc.hasNext()) {
            n = sc.nextInt();
            m = sc.nextInt();
            x = n / m;// 完整的组数
            y = n % m;// 剩余的个数
            num = 2;
            for (int i = 0; i < x; i++) {
                sum = 0;
                for (int j = 0; j < m; j++) {
                    sum += num;
                    num += 2;
                }
                System.out.print(sum / m + " ");
            }
            sum = 0;
            if (y == 0) continue;
            for (int i = 0; i < y; i++) {
                sum += num;
                num += 2;
            }
            System.out.println(sum / y + " ");
        }
    }
}
